# -*- coding: utf-8 -*-
"""
Created on Tue Nov 15 09:57:46 2022

@author: YSL
"""

profit = float(input("请输入当月利润，单位为元："))
bonus = 0  # 奖金
if profit <= 100000:
    bonus = 10 * 0.1
elif 100000 < profit <= 200000:
    bonus = 100000 * 0.1 + (profit - 100000) * 0.075
elif 200000 < profit <= 400000:
    bonus = round(100000 * 0.1 + 100000 * 0.075 +
                  (profit - 200000) * 0.05)
elif 400000 < profit <= 600000:
    bonus = 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + \
            (profit - 400000) * 0.03
elif 600000 < profit <= 1000000:
    bonus = 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + \
            200000 * 0.03 + (profit - 600000) * 0.015
elif profit > 1000000:
    bonus = 100000 * 0.1 + 100000 * 0.075 + \
            200000 * 0.05 + 200000 * 0.03 + \
            400000 * 0.015 + (profit - 1000000) * 0.015
else:
    pass
print('当月应发放奖金总数为%s元' % bonus)